home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / pipeline / abacus / p_line / Array2 / ReadMe < prev   
Encoding:
Text File  |  1991-12-08  |  1.6 KB  |  52 lines

  1. %OP%DP0
  2. %OP%IRY
  3. %OP%PL0
  4. %OP%HM0
  5. %OP%FM0
  6. %OP%BM0
  7. %OP%LM4
  8. %OP%FX
  9. %OP%FY
  10. %OP%FS
  11. %OP%PT1
  12. %OP%PDPipeLine
  13. %OP%WC816,2068,180,1620,0,0,0,0
  14. %OP%VS4.01 (22-Oct-91), Gerald Fitton, R4000 2915 6625 6368 
  15. %CO:A,72,72%
  16. %C%Arrays - Part 2
  17. %C%by Gerald L Fitton
  18. Keywords:
  19. Array Matrix Fitton
  20.  
  21. This is Part 2 of the "Arrays" series.  Part 1 is in the directory 
  22. Array1. You should read it first.
  23.  
  24. Binary Operations on Pairs of Arrays
  25. If you have two numerical arrays of equal sizes then you can carry out 
  26. addition, subtraction, multiplication, etc on the pair to create a 
  27. third array.
  28.  
  29. Load the array [Array02] from this directory.  You will see that there 
  30. are two arrays, one in B10 and the other in E10.  These arrays have 
  31. been loaded into the single slots in the same way as the array in file 
  32. [Array01]; in fact, B10 is the same array.
  33.  
  34. Position the caret in slot B20 and, in the formula line you will see 
  35. the formula B10+E10.  This formula adds the two arrays together element 
  36. by element.  The array in B20 is expanded to the range B22C26 so that 
  37. you can see what has happened.  Adding element by element means that 
  38. the array addition operation in B20 is equivalent to the ten additions 
  39. B22 = B2 + E2, B23 = B3 + E3, etc.
  40.  
  41. Similarly in E20 you will find the array multiplication B10 * E10.  
  42. This array function multiplies element by element so that it is 
  43. equivalent to ten multiplications.
  44.  
  45. The file [Array02a] contains an elaboration on the same theme of binary 
  46. operations, element by element on pairs of arrays.  One of the earliest 
  47. algebraic identities I remember is (a + b)*(a - b) = a^2 -b^2 so I have 
  48. used this as an example of array functions.
  49.  
  50.  
  51.  
  52.